[% IF loop.count % 2; odd = 1; ELSE; odd = 0; END %]

[% BLOCK editcmd %]
		href="edit_playlist.html?player=[% playerURI %]&amp;[% cmd %]=1&amp;playlist.id=[% playlist.id %]&amp;item=[% loop.count %]"
[% END %]

[% BLOCK editcontrols %]
	[%- WRAPPER moveuplink noTarget=1 %]
		[%- PROCESS editcmd cmd='up' %]
	[% END %]

	[%- WRAPPER movedownlink noTarget=1 %]
		[%- PROCESS editcmd cmd='down' %]
	[% END %]

	[%- IF item.isRemoteURL %][%- WRAPPER editlink noTarget=1 %]
		[%- PROCESS editcmd cmd='edit' %]
	[% END %][% END %]

	[%- WRAPPER removelink noTarget=1 %]
		[%- PROCESS editcmd cmd='delete' %]
	[% END %]
[% END %]

[%- WRAPPER contentitem  controls = 'editcontrols' %]
	[% item.title | html %]
[% END %]
